﻿@model Lion.WeiXin.Core.Models.ProductModel

@{
    ViewBag.Title = "Show";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
@section ChildPageJs {
    <link rel="stylesheet" href="/Kindeditor/themes/default/default.css" />
    <script charset="utf-8" src="/Kindeditor/kindeditor-min.js"></script>
    <script charset="utf-8" src="/Kindeditor/lang/zh_CN.js"></script>
    <script src="/Scripts/App_Scripts/ProductShow.js" type="text/javascript"></script>
}
<form id="fmSave" name="fmSave" method="post" enctype="multipart/form-data">
    <div class="titstyle01 clearfix">
        <strong>编辑产品</strong>
    </div>
    <div class="boxstyle01 clearfix pt25 pb10 pl10">
        <table id="tbl" class="table100">
            <tr>
                <td>
                    <span class="cf60">*</span>@Html.Label("Code", "编码")：
                </td>
                <td>
                    <input type="hidden" id="AID" name="AID" class="slcw120s f_l m5" value="@Model.AID"  />
                    <input type="text" id="Code" name="Code" value="@Model.Code" class="slcw120s f_l m5" readonly="true"  />
                </td>
            </tr>
            <tr align="left">
                <th>
                    <span class="cf60">*</span>@Html.Label("Name", "产品名称")：
                </th>
                <td>
                    @Html.TextBoxFor(m => m.Name, new { @class = "slcw120s f_l m5" })
                </td>
            </tr>
            <tr align="left">
                <th>
                    <span class="cf60">*</span>产品类型：
                </th>
                <td>
                    @*<select id="sltMsgType" class="slcw128 m5" style="width: 125px">
                      <option value="all" selected>请选择</option>
                        <option value="text">文本</option>
                        <option value="image">图片</option>
                        <option value="music">声音</option>
                        <option value="voice">音乐</option>
                        <option value="video">视频</option>
                        <option value="news">图文</option>
                      </select> *@
                    @Html.DropDownList("Dic_ProductType", ViewData["selProductType"] as IEnumerable<SelectListItem>, new { @class = "slcw180 m5" })
                </td>
            </tr>
            <tr align="left">
                <th>
                    <span class="cf60">*</span>@Html.Label("Price", "原价")：
                </th>
                <td>
                    <input type="text" id="Price" name="Price"  value="@Model.Price" class="slcw180 f_l m5" />
                </td>
            </tr>
            <tr align="left">
                <th>
                    <span class="cf60">*</span>@Html.Label("Discount", "折扣")：
                </th>
                <td>
                    <input type="text" id="Discount" name="Discount"  value="@Model.Discount" class="slcw180 f_l m5" />
                </td>
            </tr>
            <tr align="left">
                <th>
                    <span class="cf60">*</span>@Html.Label("Current_Price", "现价")：
                </th>
                <td>
                    <input type="text" id="Current_Price" name="Current_Price" value="@Model.Current_Price" readonly="true" class="slcw180 f_l m5" />
                </td>
            </tr>
            <tr align="left">
                <th>
                    <span class="cf60">*</span>@Html.Label("IsRecommend", "是否推荐")：
                </th>
                <td>
                    @if (@Model.IsRecommend == 1)
                    {
                        <input type="checkbox" id="IsRecommend" name="IsRecommend" class="slcw180 f_l m5" checked="checked" />
                    }
                    else
                    {
                        <input type="checkbox" id="IsRecommend" name="IsRecommend" class="slcw180 f_l m5" />
                    }
                </td>
            </tr>
            <tr align="left">
                <th>
                    <span class="cf60">*</span>@Html.Label("Sale_Sort", "销量排序")：
                </th>
                <td>
                    <input type="text" id="Sale_Sort" name="Sale_Sort" value="@Model.Sale_Sort" class="slcw180 f_l m5" />
                </td>
            </tr>
            <tr align="left">
                <th>
                    <span class="cf60">*</span>@Html.Label("Sale", "真实销量")：
                </th>
                <td>
                    <input type="text" id="Sale" name="Sale" value="@Model.Sale" class="slcw180 f_l m5" />
                </td>
            </tr>
            <tr align="left">
                <th>
                    <span class="cf60"></span>@Html.Label("Image", "产品图片")：
                </th>
                <td>
                    <div>
                        <input type="text" id="Image" name="Image" value="@Model.Image" class="slcw180 f_l m5" readonly="true" />
                        <input type="button" id="image3" class="btn02 f_l m15" value="选择图片" />
                    </div>
                    <div class="clear">
                        <img id="imgPic" style="width:350px;height:200px;" src="@Model.Image" />
                    </div>
                </td>
            </tr>
            <tr align="left">
                <th>
                    <span class="cf60"></span>备 注：
                </th>
                <td>
                    <textarea style="width: 90%; height: 350px;" cols="10" rows="20" id="Remark" name="Remark">@Model.Remark</textarea>
                </td>
            </tr>

            <tr>
                <td colspan="2" align="center">
                    <input type="submit" value="确 定" class="btn02 f_l m15" id="btnSave" />
                    <input type="button" class="btn02 f_l m15" id="btnCancel" value="取 消" />
                </td>
            </tr>
        </table>
    </div>
</form>
